from datetime import datetime

from docx.enum.text import WD_PARAGRAPH_ALIGNMENT

from datareport.api.annotation.Font import Font
from datareport.api.annotation.Style import style
from datareport.impl.paragraph.base.BaseParagraph import BaseParagraph

@style(alignment=WD_PARAGRAPH_ALIGNMENT.CENTER,space_before=100,space_after=0)
class Title_4(BaseParagraph):

    def __init__(self):
        super().__init__()
        self.sort=0
        self.section=1

    def start(self, conn, year, plt):
        self.fonts.append(Font(text='{}年度上海工程技术大学'.format(year),bold=True,size=14))
